Java 8 Pocket Guide by Robert Liguori and Patricia Liguori

Java 8 Pocket Guide by Robert Liguori and Patricia Liguori

Author:Robert Liguori and Patricia Liguori
Language: eng
Format: mobi, epub
ISBN: 9781491900864
Publisher: O’Reilly Media, Inc.
Published: 2014-06-15T00:00:00+00:00


Standard Streams in, out, and err

Java uses three standard streams: in, out, and err.

System.in is the standard input stream that is used to get data from the user to a program:

byte teamName[] = new byte[200];

int size = System.in.read(teamName);

System.out.write(teamName,0,size);

System.out is the standard output stream that is used to output data from a program to the user:

System.out.print("Team complete");

System.err is the standard error stream that is used to output error data from a program to the user:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.